/*
 * @Author: your name
 * @Date: 2021-12-17 14:44:09
 * @LastEditTime: 2021-12-17 14:45:57
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \day9\my-app\src\api\api.ts
 */

import axios from "axios"

// 泛型   返回值  Promise
export const login=<T>(params:T):Promise<T>=>axios.get("/api/user",{params})

